using System;

namespace Joy.Erp.BasicArchives.ItemMasters
{
    public class ItemMasterCreateOrUpdateBase : ExtensibleObject
    {
        /// <summary>
        /// 所属租户
        /// </summary>
        public Guid? TenantId { get; set; }
        /// <summary>
        /// 料品类型编号
        /// </summary>
        public Guid ItemCategoryId { get; set; }
        /// <summary>
        /// 料品名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Spec { get; set; }
        /// <summary>
        /// 计量单位组编号
        /// </summary>
        public Guid UnitGroupId { get; set; }
        /// <summary>
        /// 可采购
        /// </summary>
        public bool CanBePurchased { get; set; }
        /// <summary>
        /// 可销售
        /// </summary>
        public bool Sellable { get; set; }
        /// <summary>
        /// 可生产
        /// </summary>
        public bool CanBeProduced { get; set; }
        /// <summary>
        /// 可委外
        /// </summary>
        public bool CanBeOutsourced { get; set; }
        /// <summary>
        /// 料品形态
        /// </summary>
        public int ItemFormAttribute { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 来源类型
        /// </summary>
        public string SourceType { get; set; }
        /// <summary>
        /// 来源主键
        /// </summary>
        public string SourceKey { get; set; }
        /// <summary>
        /// 来源时间
        /// </summary>
        public DateTime? SourceCreatedOn { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public Guid? DeleterId { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeletionTime { get; set; }
        /// <summary>
        /// 最后编辑时间
        /// </summary>
        public DateTime? LastModificationTime { get; set; }
        /// <summary>
        /// 最后编辑人
        /// </summary>
        public Guid? LastModifierId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public Guid? CreatorId { get; set; }
    }
}